import java.util.Scanner;

public class Task3Arrays {

	public static double avg(double sum, int qt) {
		
		double x = sum / qt;
		return x;
	}
	
	public static void main(String[] args) {
		
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		double sum = 0;
		int arr1[] = new int[n];
		
		for(int i=0;i<arr1.length;i++){
			arr1[i] = i + 1;
			sum = sum + arr1[i];
			System.out.print(arr1[i] + " ");
		}
		
		System.out.println();
		System.out.print("Среднее арифметическое элементов массива = " + avg(sum, arr1.length));
	}
}
